/**
 * thing状态枚举
 */
package com.zhao.enums;

public enum StatusEnum {
	FINISH(1,"完成"),UNFINISH(0,"未完成");
	private int index;
	private String status;
	
	
	private StatusEnum(int index, String status){
		this.index = index;
		this.status = status;
	}


	/**
	 * 获取描述信息
	 * @param index
	 * @return
	 */
	public static String getName(int index) {
		for (StatusEnum statusEnum : StatusEnum.values()) {
			if (statusEnum.getIndex() == index) {
				return statusEnum.getStatus();
			}
		}
		return null;
	}
	public int getIndex() {
		return index;
	}


	public void setIndex(int index) {
		this.index = index;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}
	
	
}
